<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>    
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>    
<!DOCTYPE html PUBLIC>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="css/board.css" />
<title>Insert title here</title>
</head>
<body>
<div id='boardFrm' align="center">
	<!-- 상단 타이틀 이미지 -->
	<div align="left" style = "margin-bottom: 20px; margin-top: 20px">
		<img src = "images/board/notice_tt.gif"/>
	</div>
</div>
	
	<!-- 게시판 상세보기 -->
	<div id = 'notice_list_top' align = "center">
	
		<div class = "top_detail" align = "left">
			<label class = "board_title">${noticeBoard.title}</label><br/>
			<label class = "board_detail_date"><fmt:formatDate value="${noticeBoard.wdate}" pattern="yyyy-MM-dd" /></label>
			<label class = "board_detail_hit">${noticeBoard.read_count}</label>
		</div>
		<div class = "content_detail">
		 	${noticeBoard.content}
		</div>
	</div>
	
	<p/>
	
	<!-- 버튼영역 -->
	<div id = 'notice_detail_btn' align = "right">
		<input  class = "notiBtn" type = "button" value = '목록으로' style="background: #AA1212; color: white;"
		onclick="location.href='notice.do?page=1&field=&keyword'">
		<c:if test="${prev != null}">
		<input  class = "notiBtn" type = "button" value = '이전글' onclick="location.href='notice_detail.do?idx=${prev.idx}'">
		</c:if>
		<c:if test="${next != null}">
		<input  class = "notiBtn" type = "button" value = '다음 글' onclick="location.href='notice_detail.do?idx=${next.idx}'">
		</c:if>
	</div>
</body>
</html>